//
//  ViewController.m
//  类的方法
//
//  Created by Qinghe on 2020/6/13.
//  Copyright © 2020 Qinghe. All rights reserved.
//

#import "ViewController.h"
#import "Persion.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    Persion *persion = [[Persion alloc]init];
    persion.name = @"xiaoming";
    persion.age = 12;
    [persion function];
    NSLog(@"persion.age = %lu",(unsigned long)persion.age);
    [persion functions:14];
    NSLog(@"persion.age = %lu",(unsigned long)persion.age);
    persion.age = [persion functionage];
    NSLog(@"persion.age = %lu",(unsigned long)persion.age);
    
    
}


@end
